package com.cheng.spider.dao.entity;

public class Item {

    private String url;
    private String imgUrl;
    private String title;

    private String classify1;
    private String classify2;

    public Item() {
    }

    public Item(String url, String imgUrl, String title) {
        this.url = url;
        this.imgUrl = imgUrl;
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getClassify1() {
        return classify1;
    }

    public void setClassify1(String classify1) {
        this.classify1 = classify1;
    }

    public String getClassify2() {
        return classify2;
    }

    public void setClassify2(String classify2) {
        this.classify2 = classify2;
    }

    @Override
    public String toString() {
        return "Item{" + title + '}';
    }

    public String toString2() {
        return "<tr><td><a href=\"" + url + "\">" + title + "</a></td><td>" + "<img src=\"" + imgUrl + "\">" + "</td><td>" + title + "</td></tr>";
    }


}